package events;
import simulation.Echeancier;
import simulation.StationState;


public class LeaveTeleSkiD extends Event {
	
	public static double NB_PASSAGE_IN_D;

	@Override
	public String toString() {
		return "Un skieur descend du teleski D [T="+Echeancier.toHour(date)+"]";
	}

	@Override
	public void treat(Echeancier e) {
		NB_PASSAGE_IN_D++;
		
		StationState.D--;
		Event next = new BackToStation(2);
		next.date = date + 2 + StationState.exp1.next();
		
		StationState.p2B++;
		e.ajouter(next);
	}

}
